-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] restructure hardware config #655
Conversation
in 2f0866b I introduced launch files for each of our base modules (naming according to Verbautliste)... As a first example, I then extracted the configuration for the laser scanners (sick_s300, sick_lms1xx) from the robot-specific configuration (i.e. I think, this is pretty much what we discussed... @ipa-nhg @ipa-fmw @ipa-mig @ipa-mdl FYI |
dd47599
to
2f0866b
Compare
I moved on a bit further...restructuring the actuators...I'm not sure whether arms sensorrings and grippers should actually be Latest commit 7143c9c is |
d753027
to
7143c9c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good in general, although I need more explanation about the differences between component, module and bundle...
<arg name="can_device" default="can0"/> | ||
<arg name="pkg_hardware_config" default="$(find cob_hardware_config)"/> | ||
<arg name="sim" default="false"/> | ||
|
||
<arg name="driver_yaml" value="$(arg pkg_hardware_config)/robots/common/cob4_base_driver.yaml"/> | ||
<arg name="controller_yaml" value="$(arg pkg_hardware_config)/robots/common/cob4_base_controller.yaml"/> | ||
<arg name="driver_yaml" value="$(arg pkg_hardware_config)/modules/base/common/base_cob4_driver.yaml"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to keep cob4
prefix before base
prefix. what's your rational to change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as we are grouping by module, I'd have the "module" as prefix...grouping the launch files, too
@@ -1,23 +1,27 @@ | |||
<?xml version="1.0"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we still have supported robots using legacy
version of schunk components? if not, we can get rid of this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raw3-1 torso is using the legacy schunk_powercube_chain
</include> | ||
|
||
<include if="$(arg use_old_base_drive_chain)" file="$(find cob_bringup)/components/legacy_base.launch"> | ||
<arg name="robot" value="$(arg robot)"/> | ||
<include if="$(arg use_old_base_drive_chain)" file="$(find cob_bringup)/bundles/base_legacy.launch"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we still have supported robots with legacy
version of base?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Afaik, the r@w's could be switched to the canopen version, but not the cob3-X Bruno just reactivated...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently it's us not moving on here....the only robots using legacy base are raw3-1
and raw3-3
- raw3-5
could be used as a template..see #422
7143c9c
to
1835b81
Compare
publish_frequency: 12 | ||
scan_intervals: [[-2.0, 2.0]] #[rad] these intervals are included to the scan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still not sure if it makes sense to have those parameters only "component-specific". The ones you pull out are definitely depending on the real instance of the sensor. The rest could, however, in theory be changed as well.
What I don't like too much is that we now have the parameters in two places. The yaml file here and the launch args in the respective modules. This probably makes sense for many nodes, but especially for this one, one could argue that if those cannot/should not be changed depending on the real instance, they could/should be hard-coded and not parameters at all.
I fully understand the idea behind this, but I think there are cases where it is difficult to decide what is depending on the real sensor and what on the sensor type...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not even just that, i.e. deciding whether it's "instance-general" (identical for all instances of the same component/module/robot) or "instance-specific" (possibly different for each instance of the same component/module/robot)...
...I had severe brain-knots when needing to decide whether to call s.th. an instance, a component, a module, a bundle....or simply keep it in robot...
Thus, so far, I don't see the real benefit of this restructuring myself...I know where we want to go, but I have no concept for it (yet)...
However, I think we should go for an approach where we combine/generalize things that are currently identical - even if at a future point we might introduce a new instance that requires different configuration....I think we should handle such case once it occurs - rather than already considering the most general, galactical configuration structure possible...it's all about making our life easier atm, i.e. now, i.e. with the requirements we currently have (not the ones we might have in the future - maybe)
If someone knows a good concept to do so, please provide input @ipa-nhg @ipa-mdl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from that, I once heard about a "templatable" yaml approach (ros-industrial/universal_robot#144), but I never got an answer about how to use it...
Does someone know more about it?
@@ -0,0 +1,3 @@ | |||
angle_resolution: 0.25 #deg | |||
scan_frequency: 25 #hz | |||
set_config: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, the same holds as for the s300 below. Those parameter might need to be changed depending on the instance of the sensor, not the component of "lms1xx" in general.
You can configure the scanner to have a resolution of 0.25
or 0.5
degrees (probably even some more). You could even have one of each on one single robot.
Do you see my point?
My idea was a little bit different, a module is for example the cob4-t7 and this module contains the torso axis, 3 pcs, light, 3 cameras.. |
@ipa-nhg |
yes, I'd like to join. let's plan on monday during our sprint planning session |
closing (unmerged) due to #437 (comment) |
related to #437
includes #654 but will be rebased properly once that is merged...
trying to find a concept for this...this is rather a testing PR atm!